<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('detail')}">详情</a></li>
		</ul>
		<table class="table table-hover table-bordered margin-top-20">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>企业名称</th>
					<th>法定代表人</th>
					<th>地址</th>
					<th>邮箱</th>
					<th>电话号码</th>
					<th>备注</th>
					<th>最近跟进时间</th>
					<th>下次跟进时间</th>
					<th>状态</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="lists" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.company}</td>
					<td>{$vo.corporation}</td>
					<td>{$vo.address}</td>
					<td>{$vo.email}</td>
					<td>{$vo.phone}</td>
					<td class="remark">{$vo.remark}</td>
					<td>
						<eq name="vo.newtime" value="0">
							无
							<else/>
							{$vo.newtime|date="Y-m-d H:i:s",###}
						</eq>
					</td>
					<td>
						<eq name="vo.nexttime" value="0">
							无
							<else/>
							{$vo.nexttime|date="Y-m-d H:i:s",###}
						</eq>
					</td>
					<td>
						<if condition="$vo['done'] neq 0">
							<eq name="vo.donesq" value="2">
								成交库
							<else/>
								成交审核库
							</eq>
						<elseif condition="$vo['type'] neq 0"/>
							<eq name="vo.product_sh" value="2">
								产品库
								<else/>
								产品审核库
							</eq>
						<else/>
							<eq name="vo.lock_status" value="2">
								我的资源库
								<else/>
								我的资源库审核库
							</eq>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}<li><a>共计 {$lists->total()} 条</a></li></div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>